package com.example.service;


import com.example.dao.PrescriptionMapper;
import com.example.domain.Prescription;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PrescriptionService {

    @Autowired
    private PrescriptionMapper medicationMapper;

    public List<Prescription> listAll(int patient_id) {
        return medicationMapper.listAll(patient_id);
    }

}
